package com.ytjj.qmyx.admin.dao.data;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface DataStatisticDao {


    Integer getChannelOrderData(@Param("startTime") LocalDateTime startTime,
                                     @Param("endTime") LocalDateTime endTime,
                                     @Param("platform") String platform,
                                     @Param("channel") String channel,
                                     @Param("userAddress") String userAddress,
                                     @Param("isPay") Integer isPay,
                                     @Param("activityType") String activityType);


    Integer getChannelId(@Param("channel") String channel);

    List<String> childListByPid(@Param("channelId") Integer channelId);

    List<String> childListByChannel(@Param("channel") String channel);

    List<String> getChannelListByPlatform(@Param("platform") String platform);

    Integer getUvChannelOrderData(@Param("startTime") LocalDateTime startTime,
                                  @Param("endTime") LocalDateTime endTime,
                                  @Param("platform") String platform,
                                  @Param("channel") String channel,
                                  @Param("userAddress") String userAddress,
                                  @Param("isPay") Integer isPay,
                                  @Param("activityType") String activityType);
}
